import { defineStore, acceptHMRUpdate } from "pinia";
export const messageAppStore = defineStore({
  id: "message",
  state: () => ({
    exchangeFinishNotice: 0,
    openPayTabNotice: {
      tab: "",
      time: 0
    },
    openOrderTabNotice: {
      tab: "",
      time: 0
    }
  }),
  actions: {
    onExchangeFinishNotice() {
      this.exchangeFinishNotice++;
    },
    onOpenPayTabNotice(tab: string) {
      this.openPayTabNotice = {
        tab,
        time: this.openPayTabNotice.time + 1
      };
    },
    onOpenOrderTabNotice(tab: string) {
      this.openOrderTabNotice = {
        tab,
        time: this.openOrderTabNotice.time + 1
      };
    }
  }
});
if (import.meta.hot) {
  import.meta.hot.accept(acceptHMRUpdate(messageAppStore, import.meta.hot));
}
